#目标：绘制房屋价格简单水平分布散点图

import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
plt.rcParams['font.sans-serif'] = 'SimHei'  # 设置中文显示
boston = pd.read_csv('../Data/boston_house_prices.csv', encoding='gbk')
sns.set_style({'font.sans-serif':['SimHei', 'Arial']})

# sale = hr.iloc[(hr['部门'].values=='销售部') & (hr['离职'].values==1), :]
lowlife=boston.iloc[(boston['房屋价格（美元）'].values>=30000),:]
sns.stripplot(x=lowlife['犯罪率'])
plt.title('简单水平分布散点图')
plt.show()